﻿using MDPM.Foundation.SpecificationsForEntityModel;
using Microsoft.AspNetCore.Identity;
using System;
using System.ComponentModel.DataAnnotations;

namespace MDPM.EntitiyModels
{
    /// <summary>
    /// 用户类
    /// </summary>
    public class ApplicationUser:IdentityUser<Guid>,IEntity
    {
        [StringLength(10)]
        public string Name { get; set; }   //姓名
        public ApplicationUser():base()
        {
            this.Id = Guid.NewGuid();
        }
        public ApplicationUser(string userName) : base(userName)
        {
            this.Id = Guid.NewGuid();
            this.UserName = userName;
        }
    }
}
